package cn.com.db.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import cn.com.db.model.WxPayResult;
@Component
@Mapper
public interface WxPayResultDao {
	public void createWxPayResult(WxPayResult wxPayResult);

	public void updateWxPayResult(WxPayResult wxPayResult);
	
	public String getOrdersById(String wx_order_id);
	// 根据id获取微信支付的prepay_id
	public String getPrepayIdById(String wx_order_id);
	// 根据order字段里的某一个获得支付成功的WxPayResult对象
	public WxPayResult getPayResultByOrderId(@Param("orderId")String orderId);
	/**
	 * 根据orderId获取prepay_id 
	 */
	public String getPrepayIdByOrderId(@Param("orderId")String orderId);
}